#ifndef VALIDATIONRULE_H
#define VALIDATIONRULE_H

#include <QString>

class ValidationRule
{
public:
    enum ValidationContext {
        ItemContext,
        OptionContext,
        UnitContext,
        RosterContext
    };

    ValidationRule();
    ValidationRule(ValidationContext _context, const QString& _errorMessage, const QString& _script);

    ValidationContext context;
    QString errorMessage;
    QString script;
};

#endif // VALIDATIONRULE_H
